package com.homework2;

public class Employee extends Person {
    private String office;
    private double wage;
    private String hiredate;

    public Employee(String name, String address, String telephone, String email, String office, double wage, String hiredate) {
        super(name, address, telephone, email);
        this.office = office;
        this.wage = wage;
        this.hiredate = hiredate;
    }

    public Employee() {

    }

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }
    public void print(){
        System.out.println("姓名name（String类型）、地址address（String类型）、电话号码telephone（String类型）和电子邮件地址email（String类型）。\n" +
                "\n" +
                "\n" +
                "办公室office（String类型）、工资wage（double类型）和受雇日期hiredate（String类型）。1");

    }
}
